package com.whcoding.test.example.crt;

import com.whcoding.test.constant.ResultStatusEnum;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 统一API对象返回
 * </p>
 *
 * @author whcoding
 * @date Created in 2021-10-25 23:10
 */
@Data
@NoArgsConstructor
public class BaseResultVO<T> implements Serializable {


    /**
     * 状态
     */
    private Integer status;

    /**
     * 返回数据
     */
    private T result;

    public BaseResultVO(Integer code, T result) {
        this.status = status;
        this.result = result;
    }

}
